part of 'view.dart';

/// TODO：映射关系错误
extension WeatherX on String? {
  String get _weatherIcon => switch (this) {
        '1' => Assets.svgSunCloud,
        '2' => Assets.svgSunCloudRain,
        '3' => Assets.svgRain,
        '4' => Assets.svgMoon,
        '5' => Assets.svgMoonCircle,
        '6' => Assets.svgFlash,
        '7' => Assets.svgCloudFlash,
        '8' => Assets.svgCloudMoon,
        '9' => Assets.svgCloudRain,
        _ => Assets.svgSunCloud,
      };
}
